﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load


        'PlaceHolder for superuser/ control usuer role
        'anything in that place holder would show depending on which user is loggedin
        If User.IsInRole("superuser") Then
            ph_superusers.Visible = True
        Else
            ph_superusers.Visible = False
        End If


        'Only hides the button if the user not logged in
        ' If Request.Params("Username") = User.Identity.Name Then

        'btn_profile.Visible = False
        ' Else
        'btn_profile.Visible = True

        'End If



    End Sub

 
    '  Protected Sub btn_profile_Click(sender As Object, e As EventArgs) Handles btn_profile.Click
    'Response.Redirect("Profile.aspx?Username=" & User.Identity.Name)
    ' End Sub
End Class